Optimal. Leaf size=293 \[ -\frac {2 \cos ^5(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}+\frac {16 a \left (32 a^2-29 b^2\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{21 b^6 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {16 \left (32 a^4-37 a^2 b^2+5 b^4\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{21 b^6 d \sqrt {a+b \sin (c+d x)}}-\frac {20 \cos ^3(c+d x) (8 a+b \sin (c+d x))}{21 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^2-5 b^2-24 a b \sin (c+d x)\right )}{21 b^5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.34, antiderivative size = 293, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {2772, 2942,
2944, 2831, 2742, 2740, 2734, 2732} \begin {gather*} \frac {16 a \left (32 a^2-29 b^2\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{21 b^6 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {8 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^2-24 a b \sin (c+d x)-5 b^2\right )}{21 b^5 d}-\frac {16 \left (32 a^4-37 a^2 b^2+5 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{21 b^6 d \sqrt {a+b \sin (c+d x)}}-\frac {20 \cos ^3(c+d x) (8 a+b \sin (c+d x))}{21 b^3 d \sqrt {a+b \sin (c+d x)}}-\frac {2 \cos ^5(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2772
Rule 2831
Rule 2942
Rule 2944
Rubi steps
\begin {align*} \int \frac {\cos ^6(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx &=-\frac {2 \cos ^5(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {10 \int \frac {\cos ^4(c+d x) \sin (c+d x)}{(a+b \sin (c+d x))^{3/2}} \, dx}{3 b}\\ &=-\frac {2 \cos ^5(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {20 \cos ^3(c+d x) (8 a+b \sin (c+d x))}{21 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {40 \int \frac {\cos ^2(c+d x) \left (-\frac {b}{2}-4 a \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{7 b^3}\\ &=-\frac {2 \cos ^5(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {20 \cos ^3(c+d x) (8 a+b \sin (c+d x))}{21 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^2-5 b^2-24 a b \sin (c+d x)\right )}{21 b^5 d}+\frac {32 \int \frac {\frac {1}{4} b \left (8 a^2-5 b^2\right )+\frac {1}{4} a \left (32 a^2-29 b^2\right ) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{21 b^5}\\ &=-\frac {2 \cos ^5(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {20 \cos ^3(c+d x) (8 a+b \sin (c+d x))}{21 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^2-5 b^2-24 a b \sin (c+d x)\right )}{21 b^5 d}+\frac {\left (8 a \left (32 a^2-29 b^2\right )\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{21 b^6}-\frac {\left (8 \left (32 a^4-37 a^2 b^2+5 b^4\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{21 b^6}\\ &=-\frac {2 \cos ^5(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {20 \cos ^3(c+d x) (8 a+b \sin (c+d x))}{21 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^2-5 b^2-24 a b \sin (c+d x)\right )}{21 b^5 d}+\frac {\left (8 a \left (32 a^2-29 b^2\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{21 b^6 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {\left (8 \left (32 a^4-37 a^2 b^2+5 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{21 b^6 \sqrt {a+b \sin (c+d x)}}\\ &=-\frac {2 \cos ^5(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}+\frac {16 a \left (32 a^2-29 b^2\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{21 b^6 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {16 \left (32 a^4-37 a^2 b^2+5 b^4\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{21 b^6 d \sqrt {a+b \sin (c+d x)}}-\frac {20 \cos ^3(c+d x) (8 a+b \sin (c+d x))}{21 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^2-5 b^2-24 a b \sin (c+d x)\right )}{21 b^5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.22, size = 244, normalized size = 0.83 \begin {gather*} \frac {-32 (a+b) \left (a \left (32 a^3+32 a^2 b-29 a b^2-29 b^3\right ) E\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right )+\left (-32 a^4+37 a^2 b^2-5 b^4\right ) F\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right )\right ) \left (\frac {a+b \sin (c+d x)}{a+b}\right )^{3/2}+\frac {1}{2} b \cos (c+d x) \left (1024 a^4-736 a^2 b^2-111 b^4+\left (-64 a^2 b^2+52 b^4\right ) \cos (2 (c+d x))+3 b^4 \cos (4 (c+d x))+1280 a^3 b \sin (c+d x)-1076 a b^3 \sin (c+d x)+12 a b^3 \sin (3 (c+d x))\right )}{42 b^6 d (a+b \sin (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1641\) vs.
\(2(335)=670\).
time = 2.23, size = 1642, normalized size = 5.60
method | result | size |
default | \(\text {Expression too large to display}\) | \(1642\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.25, size = 874, normalized size = 2.98 \begin {gather*} -\frac {2 \, {\left (4 \, {\left (\sqrt {2} {\left (64 \, a^{4} b^{2} - 82 \, a^{2} b^{4} + 15 \, b^{6}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} {\left (64 \, a^{5} b - 82 \, a^{3} b^{3} + 15 \, a b^{5}\right )} \sin \left (d x + c\right ) - \sqrt {2} {\left (64 \, a^{6} - 18 \, a^{4} b^{2} - 67 \, a^{2} b^{4} + 15 \, b^{6}\right )}\right )} \sqrt {i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right ) + 4 \, {\left (\sqrt {2} {\left (64 \, a^{4} b^{2} - 82 \, a^{2} b^{4} + 15 \, b^{6}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} {\left (64 \, a^{5} b - 82 \, a^{3} b^{3} + 15 \, a b^{5}\right )} \sin \left (d x + c\right ) - \sqrt {2} {\left (64 \, a^{6} - 18 \, a^{4} b^{2} - 67 \, a^{2} b^{4} + 15 \, b^{6}\right )}\right )} \sqrt {-i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right ) - 12 \, {\left (\sqrt {2} {\left (-32 i \, a^{3} b^{3} + 29 i \, a b^{5}\right )} \cos \left (d x + c\right )^{2} + 2 \, \sqrt {2} {\left (32 i \, a^{4} b^{2} - 29 i \, a^{2} b^{4}\right )} \sin \left (d x + c\right ) + \sqrt {2} {\left (32 i \, a^{5} b + 3 i \, a^{3} b^{3} - 29 i \, a b^{5}\right )}\right )} \sqrt {i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right )\right ) - 12 \, {\left (\sqrt {2} {\left (32 i \, a^{3} b^{3} - 29 i \, a b^{5}\right )} \cos \left (d x + c\right )^{2} + 2 \, \sqrt {2} {\left (-32 i \, a^{4} b^{2} + 29 i \, a^{2} b^{4}\right )} \sin \left (d x + c\right ) + \sqrt {2} {\left (-32 i \, a^{5} b - 3 i \, a^{3} b^{3} + 29 i \, a b^{5}\right )}\right )} \sqrt {-i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right )\right ) + 3 \, {\left (3 \, b^{6} \cos \left (d x + c\right )^{5} - 2 \, {\left (8 \, a^{2} b^{4} - 5 \, b^{6}\right )} \cos \left (d x + c\right )^{3} + 4 \, {\left (32 \, a^{4} b^{2} - 21 \, a^{2} b^{4} - 5 \, b^{6}\right )} \cos \left (d x + c\right ) + 2 \, {\left (3 \, a b^{5} \cos \left (d x + c\right )^{3} + 4 \, {\left (20 \, a^{3} b^{3} - 17 \, a b^{5}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )\right )} \sqrt {b \sin \left (d x + c\right ) + a}\right )}}{63 \, {\left (b^{9} d \cos \left (d x + c\right )^{2} - 2 \, a b^{8} d \sin \left (d x + c\right ) - {\left (a^{2} b^{7} + b^{9}\right )} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\cos \left (c+d\,x\right )}^6}{{\left (a+b\,\sin \left (c+d\,x\right )\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________